﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Cosmetic.Logic;
using Cosmetic.DataEntity;

namespace WebApp.Controls
{
    public partial class LeftToolBarNew : System.Web.UI.UserControl
    {
        CategoryManager m_CategoryManager = new CategoryManager();
        protected void Page_Load(object sender, EventArgs e)
        {
            Category theProductTopCategory = m_CategoryManager.GetTopCategryByName(CategoryManager.ETopCategory.Category_L);
            
            m_CategoryManager.GetSubCateogoriesBySupCategory(theProductTopCategory).OrderBy(theCategory => theCategory.Index);

                //this.rptMainCategory.DataSource = 
            //this.rptMainCategory.DataBind();
        }
    }
}